<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<form action="" method="post">
				用户名：<input type="text" name="username" v-model="user.name">
				<hr />
				密码：<input type="password" name="password" v-model="user.password">
			</form>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el: '#app',
				data: {
					user: {
						name: 'test',
						password: '1234'
					}
				}
			});
		</script>
	</body>

</html>
